<extend name="Common@Layout:hui-admin" />
<block name="title"><title>Administator管理后台</title></block>
<block name="style">
<style>
.listorder {width:60px;text-align:center;}
</style>
</block>

<block name="main">
	<nav class="breadcrumb">
		<i class="Hui-iconfont"></i>
		 首页 <span class="c-gray en">&gt;</span>
		 课程管理 <span class="c-gray en">&gt;</span>  
		 缓存管理
		<a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont"></i></a>
	</nav>
	
	<div class="pd-20">

		<div class="cl pd-5 bg-1 bk-gray mt-20"> 
			<span class="l ml-20"> 
				<a class="btn btn-primary radius create" href="javascript:;" >生成缓存</a> 
			</span> 
			<span class="l ml-20"> 
				<a class="btn btn-primary radius updatestudentstatus" href="javascript:;" >更新班级老生新生状态</a> 
			</span> 
		</div>
		<div class="content"></div>
	</div>
	
	
</block>

<block name="script">
<script>
$(function(){
	$('.mini-time').datepicker();
});
$(".create").click(function(){
	$.post("/Ygcl/Cacheadmin/create_all_cahce",function(data){
		if(data.status){
			$(".content").html(data.info);
		}
	})
})
$(".updatestudentstatus").click(function(){
	$(".content").html('开始更新...请等待');
	$.post("/Ygcl/Cacheadmin/update_student_lesson_old_status",function(data){
		if(data.status){
			$(".content").html(data.info);
		}
	})
})
</script>
</block>